<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@page import="sever.*,entity.*,java.util.*,util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
   <table border="1" cellpadding="0" cellspacing="0">
            
             <%
               Xianshi x=new Xianshi();
             List<Subject> list=x.findall();
             for(Subject s:list){
            	 %>
            	 <tr>
            	   <td><%=s.getId() %></td>
            	  <td><%=s.getGname() %></td>
            	   <td><%=s.getStudent() %></td> 
            	   <td><%=s.getSubject() %></td>
            	 </tr>
            	 <%} %>
             
         </table>
</body>
</html>